package com.yxw.yxnet_cd_center.customer_service.dto;



import com.yxw.yxnet_cd_center.customer_service.entity.YxcscServiceTalkRecordEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.TableId;
//import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



@Data
//@EqualsAndHashCode(callSuper = true)
public class YxcscServiceTalkRecordDTO   implements Serializable
{
    private static final long serialVersionUID = 81695293695686L;
    /**
    *会话时间,时间戳
   
    @ApiModelProperty(value = "会话时间,时间戳")
    private Long createTime;
     */
    /**
    *记录ID
    */
    //@NotNull(message = "记录ID不可为空")
    @ApiModelProperty(value = "记录ID")
    private Long Id;
    
    /**
    *是否已发送 0:否 1：是
    
    @ApiModelProperty(value = "是否已发送 0:否 1：是")
    private Integer sendFlag;
    * */
    /**
    *发送者ID
    */
    @ApiModelProperty(value = "发送者ID")
    //@NotBlank(message = "发送者ID不可为空")
    private String senderId;
    /**
    *发送者姓名
    */
    @ApiModelProperty(value = "发送者姓名")
    //@NotBlank(message = "发送者姓名不可为空")
    private String senderName;
    /**
    *发送者类型 1:客户2：客服
    */
    @ApiModelProperty(value = "发送者类型 1:客户2：客服")
    private Integer senderType;
    /**
    *会话ID
    */
    @ApiModelProperty(value = "会话Id")
    @NotBlank(message = "会话ID不可为空")
    private String sessionId;
    /**
    *客服会话Id
    */
    @ApiModelProperty(value = "客服会话Id")
    //@NotBlank(message = "客服会话Id不可为空")
    private String accessServiceId;    
    /**
    *会话聊天内容
    */
    @ApiModelProperty(value = "会话聊天内容")
    private String talkInfo;
    /**
    *将DTO转换为ENTITY
    */
    public YxcscServiceTalkRecordEntity ConverToEntity()
    {
        YxcscServiceTalkRecordEntity oYxcscServiceTalkRecordEntity = new YxcscServiceTalkRecordEntity ();
        //oYxcscServiceTalkRecordEntity.setCreateTime(createTime) ;
        oYxcscServiceTalkRecordEntity.setId(Id) ;
        //oYxcscServiceTalkRecordEntity.setSendFlag(sendFlag) ;
        oYxcscServiceTalkRecordEntity.setSenderId(senderId) ;
        oYxcscServiceTalkRecordEntity.setSenderName(senderName) ;
        oYxcscServiceTalkRecordEntity.setSenderType(senderType) ;
        oYxcscServiceTalkRecordEntity.setSessionId(sessionId) ;
        oYxcscServiceTalkRecordEntity.setTalkInfo(talkInfo) ;
        return oYxcscServiceTalkRecordEntity;
    }
}

